<html>
<body>
Reports <code>for</code>, <code>while</code>,
or <code>do</code> statements that
can only exit by throwing an exception. While such statements may be correct, they
often happen due to coding errors.
<p>Example:</p>
<pre><code>
  for (;;) {
  }
</code></pre>
<!-- tooltip end -->
<p>
Use the <b>Ignore when placed in Thread.run</b> option to ignore the
  infinite loop statements inside <code>Thread.run</code>.
It may be useful for the daemon threads.
<p>Example:</p>
<pre><code>
  new Thread(() -&gt; {
    while (true) {
    }
  }).start();
</code></pre>
<p>
</body>
</html>